package com.example.healthsystem.service;

import com.example.healthsystem.entity.reglist;
import com.example.healthsystem.entity.user;

import java.sql.Timestamp;
import java.util.List;

public interface ReglistService {
    // === insert ===
    // --- insert register list ---  =>admin
    void insertList(reglist reglist);
    // === delete ===
    // --- delete register list --- =>admin
    void deleteList(String name);// --- base on user's name
    // === change ===
    // --- change unregnum/lastregtime
    void changeList(String name, int unregnum, Timestamp lastregtime);
    // === search ===
    // --- search list on name ==>admin
    reglist searchNameList(String name);

    // --- search all info =>admin
    List<reglist> searchAllList(int pageNum,int pageSize);
}
